﻿using System.Collections.Generic;

namespace Xms.Abp.Data;

public abstract class TreeBase<TTree, TKey> : ITree<TTree, TKey>
        where TTree : class, ITree<TTree>, ITree<TTree, TKey>
        where TKey : class
{
    public TKey Id { get; set; }
    public TKey ParentId { get; set; }
    public List<TTree> Children { get; set; } = new List<TTree>();

    public abstract TTree Clone();
}
